﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Colorful.Control.Converters;
using System.Windows.Media;
using System.Globalization;

namespace Colorful.Test.Unit
{
    [TestClass]
    public class ColorToBrushConverterTest
    {
        [TestMethod]
        public void ConvertColorToBrushTest()
        {
            ColorToBrushConverter converter = new ColorToBrushConverter();
            Color color = Colors.Red;
            SolidColorBrush brush = (SolidColorBrush)converter.Convert(color, typeof(SolidColorBrush), null, CultureInfo.CurrentCulture);
            Assert.AreEqual<Color>(color, brush.Color);
        }
    }
}
